package org.springframework.demo7;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class PayService {

	@Autowired
	List<AbstarctOrderVerify> abstarctOrderVerifyList;

	public void pay(){
		for (AbstarctOrderVerify verify : abstarctOrderVerifyList) {
			verify.verify();
		}
	}
}
